extends Area2D
class_name abstract_button

## object of output button, for example red button: object = "red"
var object = "void"
# Called when the node enters the scene tree for the first time.
func _ready():
	pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(_delta):
	pass


func _on_body_entered(body):
	if "current_button_output_object" in body:
		body.current_button_output_object = object
	modulate += Color(1, 1, 1, 0)

func _on_body_exited(body):
	if "current_button_output_object" in body:
		body.current_button_output_object = "void"
	modulate -= Color(1, 1, 1, 0)
